/*
* @Author: ZHELIHAO\fangshuqin
* @Date:   2018-05-21 16:57:00
* @Last Modified by:   ZHELIHAO\fangshuqin
* @Last Modified time: 2018-05-24 13:46:38
*/

{
    let EVENT_CLICK = Laya.Event.CLICK;
    let instance = null;

    class BetAndSet extends ui.Hall.BetAndSetUI {
        constructor () {
            super();
            this.init();

            BetAndSet.instance = this;
        }

        static get I () {
            if(!instance){
                instance = new this;
            }
            return instance;
        }

        init () {
            this.initEvent();
        }


        initEvent(){
    
        }

        getUserInfo(data) {
            // this.dom_key.text = data.keys;
            this.dom_coin.text = data.coin;
            this.dom_medal.text= data.medal;
            this.dom_diamond.text = data.diamond;

        }

        exit () {
            this.removeSelf();
        }
    }

    Sail.class(BetAndSet, "Public.BetAndSet");
}